package com.gao.spring.dao;

/**
 * @Projectname SSM
 * @Filename BookDao
 * @Author an
 * @Data 2022/8/3 8:12
 * @Description TODO
 */
public interface BookDao {
    //根据图书的id查询价格
    Integer getPriceByBookId(Integer bookId);
    //更新库存
    void updateStock(Integer bookId);
    //更新余额
    void updateBalance(Integer userId, Integer price);
}
